package org.meichao.demo.service.strategy;

import com.alibaba.fastjson.JSONObject;
import org.meichao.config.annotation.Read;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgeBadge implements BadgeStrategy {

    private final static Logger LOGGER = LoggerFactory.getLogger(AgeBadge.class);

    @Override
    @Read
    public List<JSONObject> getBadgeInfo(String agentId, String badgeType) {
        LOGGER.info("------司领徽章 查询数据库，排序等操作------");
        return null;
    }

    /**
     * 司龄
     * @param badgeType 1.司龄 2.销售 3.组发 4.晋升 5.服务 空：返回全部
     * @return
     */
    @Override
    public Boolean checkOut(String badgeType) {
        return "1".equals(badgeType);
    }

}
